How to Sort an Array by Alternating Largest and Smallest Values in Java